﻿namespace TestModel.Model.Table
{
    /// <summary>
    /// 字段
    /// </summary>
    public class Field
    {
        public Field(string name, string type, string comment, string attribute)
        {
            Name = name;
            Type = type;
            Comment = comment;
            Attribute = attribute;
        }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Comment { get; set; }
        /// <summary>
        /// 属性
        /// </summary>
        public string Attribute { get; set; }

        public override string? ToString()
        {
            return $"Name={Name},Type={Type},Comment={Comment},Attribute={Attribute}";
        }
    }
}
